package top.aicey.ai.sparring.processor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DefaultLogIndexContextProcessorExecutor implements LogIndexContextProcessorExecutor {


    @Autowired
    private LogIndexContextProcessorSelector logIndexContextProcessorSelector;


    @Override
    public Integer incr(String instanceId) {
        return logIndexContextProcessorSelector.get().incr(instanceId);
    }

    @Override
    public void clear(String instanceId) {
        logIndexContextProcessorSelector.get().clear(instanceId);
    }
}
